package com.george.service.impl;

import com.george.dao.UserDao;
import com.george.entity.User;
import com.george.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/6/12 8:31
 * @version 1.0
 * @since jdk1.8
 */
@Service
public class UserServiceImpl implements UserService {
    private final UserDao userDao;

    @Autowired
    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User saveUser(User user) {
        User save = userDao.save(user);
        return save;
    }
}
